import App from "./App.vue";
import { createApp } from "vue";
import "./style.css";
import { router } from "./router";
import mitt from "mitt";
import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";
import { createPinia } from "pinia";
import CreateStore from "./store/index";
import CreateConfig from "./config";
import CreateAuth from "./router/AuthContral";
import CreateService from "./service";
import * as echarts from "echarts";
import CreateNav from "./router";
import "@/mock/index";
const pinia = createPinia();
const app = createApp(App);
app.use(router);
app.use(Antd);
app.use(pinia);
export const Config = CreateConfig();
export const EventBus = mitt();
export const Store = CreateStore();
export const Auth = CreateAuth();
export const Nav = CreateNav();
export const Service = CreateService();
export const Echarts = echarts;
app.mount("#app");
